<div class="box-header with-border">
    <div class="pull-right">
        {{--判断是否为仓库导出--}}
        @if(\Illuminate\Support\Facades\Route::currentRouteName() == 'materialChart')
             <a href="{{$route}}?dateTime={{request()->input('dateTime')?request()->input('dateTime'):date('Y', time())}}" target="_blank" class="btn btn-sm btn-success" title="新增">
                <i class="fa fa-upload"></i><span class="hidden-xs">&nbsp;&nbsp;导出选择年份</span>
             </a>
                @else
            <div class="btn-group pull-right grid-create-btn" style="margin-right: 10px">
            <a href="{{$route}}" target="_blank" class="btn btn-sm btn-success" title="新增">
                <i class="fa fa-upload"></i><span class="hidden-xs">&nbsp;&nbsp;导出今日</span>
            </a>
        </div>
        <div class="btn-group pull-right grid-create-btn" style="margin-right: 10px">
            <a href="{{$route}}?date=month" target="_blank" class="btn btn-sm btn-success" title="新增">
                <i class="fa fa-upload"></i><span class="hidden-xs">&nbsp;&nbsp;导出本月</span>
            </a>
        </div>
        <div class="btn-group pull-right grid-create-btn" style="margin-right: 10px">
             <a href="{{$route}}?date=year" target="_blank" class="btn btn-sm btn-success" title="新增">
                 <i class="fa fa-upload"></i><span class="hidden-xs">&nbsp;&nbsp;导出本年</span>
             </a>
        </div>
        @endif

    </div>
</div>